package mrusanov.ui.battle

import javax.swing.{JButton, JComponent, JPanel}
import java.awt.event.{ActionEvent, ActionListener}
import mrusanov.battle.MiniArena

abstract class UnitOrderComponentState(miniArena:MiniArena, battleUiState:BattleUIController) extends JButton {
  addActionListener(new ActionListener {
    def actionPerformed(e: ActionEvent) {
      battleUiState.buttonClicked(miniArena)
    }
  })
}
